import Layout from '../views/layout/Layout'
export const adminRoutes = [

    {
        path: '/login',
        name: 'Login',
        hidden:true,
        component:()=> import('../views/blogadmin/Login'),
        meta:{title:'登陆'}
    },
    {
        path:'/register',
        name:'Register',
        hidden:true,
        component:()=>import('../views/blogadmin/Register'),
        meta:{title:'注册'}
    },
    {
    path:'/layout',
    name:'layout',
    redirect: '/dashboard',
    meta:{title:'首页',breadcrumb:false,affix: true}, hidden:true,

    component:()=>import('../views/layout/Layout'),
    children:[
    {
        path:"/dashboard",
        name:"dashboard",
        component:()=>import('@/views/Console/index'),
        hidden:true,
        breadcrumb:false,
        meta:{title:'控制台首页',breadcrumb:false,
           //如果设置为false，则不会在breadcrumb面包屑中显示(默认 true)
             },
             }
        ]
    },
    {
        path: '/blogAdmin',
        component: Layout,
        redirect: '/blogAdmin/blog',
        name: 'blogAdmin',
        meta:{title:'博客管理'},
        children: [
            {
                path: '/blog',
                name: '博客管理',
                component: () => import('@/views/blogadmin/blog'),
                meta: { title: '博客管理',breadcrumb :true ,}
            },
            {
                path: '/blogTag',
                name: '标签管理',
                component: () => import('@/views/blogadmin/blogTag'),
                meta: { title: '标签管理',breadcrumb :true ,}
            },
            {
                path: '/blogSort',
                name: '分类管理',
                component: () => import('@/views/blogadmin/blogSort'),
                meta: { title: '分类管理',breadcrumb :true,}
            },{
            path:'/edit',
                name:'添加博客',
                component: () => import('@/views/blogadmin/edit'),
                meta: { title: '添加博客',breadcrumb :true,}

            }
        ]
    },
    {
        path: '/message',
        component: Layout,
        redirect: '/message/comment',
        name: '消息管理',
        meta:{title:'消息管理'},
        children:[
            {
                path:'/leave',
                name:'留言管理',
                component:()=>import('@/views/message/message'),
                meta:{title:'留言管理',breadcrumb :true,}
            },
            {
                path: '/comment',
                name: '评论管理',
                component: () => import('@/views/message/comment'),
                meta: { title: '评论管理' ,breadcrumb :true,}
            }
        ]
    },
    {   path: '/system',
        component: Layout,
        redirect: '/system/aboutMe',
        name: '系统管理',
        meta: { title: '系统管理' ,breadcrumb :true},
        children:[
            {
                path: '/aboutMe',
                name: '关于我',
                component: () => import('@/views/system/aboutMe'),
                meta: { title: '关于我',
                    breadcrumb :true,

                }
            },
            {
                path: '/webConfig',
                name: '网站配置',
                component: () => import('@/views/system/webConfig'),
                meta: { title: '网站配置' ,breadcrumb :true,}
            },

        ]
    },
    {
        path: '/friendLink',
        redirect: 'friendLink/friendLink',
        component: Layout,
        name:'友情链接',
        meta: { title: '友情链接',breadcrumb :true},
        children:[
            {
                path: '/friendLink',
                name: '友情链接',
                component: () => import('@/views/friendlink/friendLink'),
                meta: { title: '友情链接',breadcrumb :true,},
            }
        ]
    }


]
